﻿<%@ Page Title="" Language="C#" MasterPageFile="~/adminaq/Adminpage.Master" AutoEventWireup="true"
    CodeBehind="AQPagePermissionAccount.aspx.cs" Inherits="ToolwebAQ.AQPagePermissionAccount" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.11.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.11.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="page clear">
        <!-- CONTENT BOXES -->
        <div class="content-box">
            <div class="box-header clear">
                <h2>
                    Phân quyền trang</h2>
            </div>
            <div class="box-body clear">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <dx:ASPxGridView ID="gvPermissionpage" ClientInstanceName="gvPermissionpage" runat="server"
                            AutoGenerateColumns="false" KeyFieldName="idmenupage" Width="100%" OnAfterPerformCallback="gvPermissionpage_AfterPerformCallback">
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="STT" Settings-AllowSort="False" Width="20px"
                                    VisibleIndex="0" />
                                <dx:GridViewDataTextColumn FieldName="Namepage" Caption="TÊN TRANG" VisibleIndex="0">
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="Urlpage" Caption="TRANG WEB" VisibleIndex="1">
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="Namemenu" Caption="TÊN MENU" VisibleIndex="2">
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewCommandColumn Caption="CHỨC NĂNG" Width="70px" VisibleIndex="3">
                                    <NewButton Visible="true" />
                                    <EditButton Visible="true" />
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewCommandColumn>
                                <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="4">
                                    <HeaderTemplate>
                                        <dx:ASPxCheckBox ID="SelectAllCheckBox" runat="server" ToolTip="Chọn tất cả" ClientSideEvents-CheckedChanged="function(s, e) { gvPermissionpage.SelectAllRowsOnPage(s.GetChecked()); }" />
                                    </HeaderTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewCommandColumn>
                            </Columns>
                            <SettingsPager PageSize="10" />
                            <SettingsEditing EditFormColumnCount="2" />
                            <Settings ShowTitlePanel="true" />
                            <SettingsText Title="Sửa" />
                        </dx:ASPxGridView>
                        <div style="float: left; width: 100%">
                            <div class="notification note-attention" id="tb2" visible="false" runat="server">
                                <a href="#" class="close" title="Close notification"><span>closean</span></a> <span
                                    class="icon"></span>
                                <p>
                                    <strong>Thông báo:</strong><asp:Label ID="lblNotice" runat="server" Text=""></asp:Label></p>
                            </div>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <br />
                <br />
                <br />
                <div class="box-header clear">
                    <h2>
                        Phân quyền tính năng cho tài khoản</h2>
                </div>
                <div class="box-body clear">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <dx:ASPxGridView ID="gvPermissionAccount" ClientInstanceName="gvPermissionAccount"
                                KeyFieldName="Idacpage" runat="server" Width="100%" OnAfterPerformCallback="gvPermissionAccount_AfterPerformCallback"
                                AutoGenerateColumns="False">
                                <Columns>
                                    <dx:GridViewDataTextColumn Caption="STT" Width="20px" VisibleIndex="0" />
                                    <dx:GridViewDataTextColumn FieldName="Accountname" Caption="TÀI KHOẢN" Width="70px"
                                        VisibleIndex="1" />
                                    <dx:GridViewDataTextColumn FieldName="Namepage" Caption="TÊN TRANG" Width="280px"
                                        VisibleIndex="2" />
                                    <dx:GridViewDataTextColumn FieldName="Urlpage" Caption="TRANG WEB" Width="210px"
                                        VisibleIndex="3" />
                                    <dx:GridViewDataTextColumn FieldName="Namemenu" Caption="MENU" Width="140px" VisibleIndex="4" />
                                    <dx:GridViewBandColumn Caption="QUYỀN" VisibleIndex="5">
                                        <Columns>
                                            <dx:GridViewDataCheckColumn FieldName="insert" Caption="THÊM" Width="5px" VisibleIndex="5"
                                                Settings-AllowSort="False">
                                                <Settings AllowSort="False" />
                                            </dx:GridViewDataCheckColumn>
                                            <dx:GridViewDataCheckColumn FieldName="update" Caption="SỬA" Width="5px" VisibleIndex="6"
                                                Settings-AllowSort="False">
                                                <Settings AllowSort="False" />
                                            </dx:GridViewDataCheckColumn>
                                            <dx:GridViewDataCheckColumn FieldName="delete" Caption="XÓA" Width="5px" VisibleIndex="7"
                                                Settings-AllowSort="False">
                                                <Settings AllowSort="False" />
                                            </dx:GridViewDataCheckColumn>
                                            <dx:GridViewDataCheckColumn FieldName="print" Caption="IN" Width="5px" VisibleIndex="8"
                                                Settings-AllowSort="False">
                                                <Settings AllowSort="False" />
                                            </dx:GridViewDataCheckColumn>
                                            <dx:GridViewDataCheckColumn FieldName="search" Caption="TÌM" Width="5px" VisibleIndex="9"
                                                Settings-AllowSort="False">
                                                <Settings AllowSort="False" />
                                            </dx:GridViewDataCheckColumn>
                                        </Columns>
                                    </dx:GridViewBandColumn>
                                    <dx:GridViewCommandColumn Caption="CHỨC NĂNG" Width="70px" VisibleIndex="6">
                                        <NewButton Visible="true" />
                                        <EditButton Visible="true" />
                                    </dx:GridViewCommandColumn>
                                    <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="7">
                                        <HeaderTemplate>
                                            <dx:ASPxCheckBox ID="SelectAllCheckBox" runat="server" ToolTip="Chọn tất cả" ClientSideEvents-CheckedChanged="function(s, e) { gvPermissionAccount.SelectAllRowsOnPage(s.GetChecked()); }" />
                                        </HeaderTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewCommandColumn>
                                </Columns>
                                <ClientSideEvents SelectionChanged="" />
                                <SettingsBehavior AllowDragDrop="False" />
                                <Settings ShowGroupPanel="true" />
                            </dx:ASPxGridView>
                            <div style="float: left" class="form-field clear">
                                <asp:Button ID="btnSubmitRole" runat="server" CssClass="submit fl-space" Text="Cập nhật" />
                            </div>
                            <div style="float: left; width: 100%">
                                <div class="notification note-attention" id="Thongbao" visible="false" runat="server">
                                    <a href="#" class="close" title="Close notification"><span>closean</span></a> <span
                                        class="icon"></span>
                                    <p>
                                        <strong>Thông báo:</strong><asp:Label ID="Lbl_thongbao" runat="server" Text=""></asp:Label></p>
                                </div>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
